package com.club.football.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.club.football.dto.PageDto;
import com.club.football.dto.StaffSaveDto;
import com.club.football.entity.Staff;
import com.club.football.req.StaffPageReq;
import com.club.football.utils.R;

/**
 * 职工服务
 *
 * @author 1
 * @date 2024/01/09
 */
public interface StaffService extends IService<Staff> {
    /**
     * 员工页面
     *
     * @param pageDto      页数到页
     * @param staffPageReq 人员页面请求
     * @return {@link R}<{@link Page}<{@link Staff}>>
     */
    R<Page<Staff>> staffPage(PageDto<Staff> pageDto, StaffPageReq staffPageReq);

    /**
     * 员工保存
     *
     * @param saveDto 将数据保存到
     * @return {@link R}<{@link String}>
     */
    R<String> staffSave(StaffSaveDto saveDto);
}
